import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

const appRouter: Routes = [
  {path: 'login', loadChildren: 'app/login/login.module#LoginModule'},// 登录模块
  {path: 'register', loadChildren: 'app/register/register.module#RegisterModule'}// 注册模块
];

@NgModule({
  imports: [RouterModule.forRoot(appRouter)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
